<?
class smarty_ext_watermark {

	function smarty_ext_watermark() {
		global $setupdata, $mysqlclass, $watermarkclass;
		$this->setupdata=$setupdata;
		$this->mysqlclass=$mysqlclass;
		$this->watermarkclass=$watermarkclass;
	}

	function get_all_watermarks(){
		return $this->watermarkclass->get_all_watermarks();
	}
	
	function get_watermark_data($params){
		if (isset($params['id'])){
			return $this->watermarkclass->get_watermark_data($params['id']);
		} else return array();
	}
}
?>